<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>初始化网站基本信息</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width">
        <!-- 包含jquery -->
        <script type="text/javascript" src="jquery-1.9.1.min.js"></script>
    </head>
    <body>
        <script type="text/javascript">
            $("document").ready(function() {
            	/*inAjax：判断是否是本页面发出的请求  */
                var url = "server.php?inAjax=1&do=checkMember&username=ericwolf";
                var data = {};//post请求，data要扶植
                /*get请求 url网页地址，data内容，res返回值  */
                $.get(url, data, function(res) {
                    
                    
                    
                    var jsonObj = eval("(" + res + ")");
                    $("#username").val(jsonObj.username);
                    $("#groupname").val(jsonObj.groupname);
                    $("#uid").val(jsonObj.uid);
                });
                
               
                
                
            });
        </script>


        <div>
            用户名：<input type="text" name="username" id="username" />
            <br/>
            会员组:<input type="text" name="groupname" id="groupname" />
            <br/>
            UID:<input type="text" name="uid" id="uid" />
        </div>
    </body>
</html>
